package com.lanswon.qzsmk.model;

import java.io.Serializable;
import java.util.Date;
/**
 * 凭证表
 * @author sun
 *
 */
public class Cert implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = -4009374534123452963L;

	/** 凭证ID */
    private String certNo;

    /** 卡控制id */
    private Integer cardControlId;

    /** 凭证类型 1 单笔申请 2 批量申请 3 出库配送 4 单笔发卡 5 批量发卡 */
    private String certType;

    /** 业务流水号 */
    private String businessNo;

    /** 交易代码 */
    private String transCode;

    /** 卡产品代码 */
    private String cardpCode;

    /** 卡类型代码 1.标准卡 2.记名衍生卡 3.非记名衍生卡 */
    private String cardTypecode;

    /** 打印凭证数据 */
    private String data;

    /** 单位编号 10位顺序号 */
    private String corpCode;

    /** 单位名称 */
    private String corpName;

    /** 持卡人姓名 */
    private String name;

    /** 证件类型 */
    private String paperType;

    /** 证件号码 */
    private String paperNo;

    /** 打印次数 */
    private Integer printCount;


    /** 网点编号 */
    private String branchNo;

    /** 网点名称 */
    private String branch;

    /** 代理人姓名 */
    private String agentName;

    /** 代理人证件类型 */
    private String agentPapertype;

    /** 代理人证件号码 */
    private String agentPaperNo;

    /** 打印柜员号 */
    private String crtOperator;

    /** 打印日期 */
    private Date crtDate;

    /** 最后打印柜员号 */
    private String lastOperator;

    /** 最后打印日期 */
    private Date lastDate;
    
    private int flag;
    


    
    public int getFlag() {
		return flag;
	}

	public void setFlag(int flag) {
		this.flag = flag;
	}

	public String getCertNo() {
        return certNo;
    }

    public void setCertNo(String certNo) {
        this.certNo = certNo == null ? null : certNo.trim();
    }

    public Integer getCardControlId() {
        return cardControlId;
    }

    public void setCardControlId(Integer cardControlId) {
        this.cardControlId = cardControlId;
    }

    public String getCertType() {
        return certType;
    }

    public void setCertType(String certType) {
        this.certType = certType == null ? null : certType.trim();
    }

    public String getBusinessNo() {
        return businessNo;
    }

    public void setBusinessNo(String businessNo) {
        this.businessNo = businessNo == null ? null : businessNo.trim();
    }

    public String getTransCode() {
        return transCode;
    }

    public void setTransCode(String transCode) {
        this.transCode = transCode == null ? null : transCode.trim();
    }

    public String getCardpCode() {
        return cardpCode;
    }

    public void setCardpCode(String cardpCode) {
        this.cardpCode = cardpCode == null ? null : cardpCode.trim();
    }

    public String getCardTypecode() {
        return cardTypecode;
    }

    public void setCardTypecode(String cardTypecode) {
        this.cardTypecode = cardTypecode == null ? null : cardTypecode.trim();
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data == null ? null : data.trim();
    }

    public String getCorpCode() {
        return corpCode;
    }

    public void setCorpCode(String corpCode) {
        this.corpCode = corpCode == null ? null : corpCode.trim();
    }

    public String getCorpName() {
        return corpName;
    }

    public void setCorpName(String corpName) {
        this.corpName = corpName == null ? null : corpName.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPaperType() {
        return paperType;
    }

    public void setPaperType(String paperType) {
        this.paperType = paperType == null ? null : paperType.trim();
    }

    public String getPaperNo() {
        return paperNo;
    }

    public void setPaperNo(String paperNo) {
        this.paperNo = paperNo == null ? null : paperNo.trim();
    }

    public Integer getPrintCount() {
        return printCount;
    }

    public void setPrintCount(Integer printCount) {
        this.printCount = printCount;
    }


    public String getBranchNo() {
        return branchNo;
    }

    public void setBranchNo(String branchNo) {
        this.branchNo = branchNo == null ? null : branchNo.trim();
    }

    public String getBranch() {
        return branch;
    }

    public void setBranch(String branch) {
        this.branch = branch == null ? null : branch.trim();
    }

    public String getAgentName() {
        return agentName;
    }

    public void setAgentName(String agentName) {
        this.agentName = agentName == null ? null : agentName.trim();
    }

    public String getAgentPapertype() {
        return agentPapertype;
    }

    public void setAgentPapertype(String agentPapertype) {
        this.agentPapertype = agentPapertype == null ? null : agentPapertype.trim();
    }

    public String getAgentPaperNo() {
        return agentPaperNo;
    }

    public void setAgentPaperNo(String agentPaperNo) {
        this.agentPaperNo = agentPaperNo == null ? null : agentPaperNo.trim();
    }

    public String getCrtOperator() {
        return crtOperator;
    }

    public void setCrtOperator(String crtOperator) {
        this.crtOperator = crtOperator == null ? null : crtOperator.trim();
    }

    public Date getCrtDate() {
        return crtDate;
    }

    public void setCrtDate(Date crtDate) {
        this.crtDate = crtDate;
    }

    public String getLastOperator() {
        return lastOperator;
    }

    public void setLastOperator(String lastOperator) {
        this.lastOperator = lastOperator == null ? null : lastOperator.trim();
    }

    public Date getLastDate() {
        return lastDate;
    }

    public void setLastDate(Date lastDate) {
        this.lastDate = lastDate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", certNo=").append(certNo);
        sb.append(", cardControlId=").append(cardControlId);
        sb.append(", certType=").append(certType);
        sb.append(", businessNo=").append(businessNo);
        sb.append(", transCode=").append(transCode);
        sb.append(", cardpCode=").append(cardpCode);
        sb.append(", cardTypecode=").append(cardTypecode);
        sb.append(", data=").append(data);
        sb.append(", corpCode=").append(corpCode);
        sb.append(", corpName=").append(corpName);
        sb.append(", name=").append(name);
        sb.append(", paperType=").append(paperType);
        sb.append(", paperNo=").append(paperNo);
        sb.append(", printCount=").append(printCount);
        sb.append(", branchNo=").append(branchNo);
        sb.append(", branch=").append(branch);
        sb.append(", agentName=").append(agentName);
        sb.append(", agentPapertype=").append(agentPapertype);
        sb.append(", agentPaperNo=").append(agentPaperNo);
        sb.append(", crtOperator=").append(crtOperator);
        sb.append(", crtDate=").append(crtDate);
        sb.append(", lastOperator=").append(lastOperator);
        sb.append(", lastDate=").append(lastDate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}